end

 

End is a special primitive used only to finish a procedure. Just as a procedure starts with to procedure-name or to-report procedure-name, it concludes with end. A procedure that doesn’t finish with end will cause an error.

 

Try it Yourself

 
 
 
 
 
 
 

What's next?

Once you mastered the end primitive, don't stop there. Check out the resources below to improve your NetLogo skills.

 
Published NetLogo models that use the end primitive:
 
 
Similar primitives:
to

used to begin a command procedure

Read more
to-report

Begin a procedure to create a custom reporter.

Read more
ask

a reporter that is used to make the agents in the agentset do something.

Read more
semicolon

used for making helpful comments or notes on a line of code

Read more
 
Learn another primitive